package com.neusoft.tijiancms.mapper;

import com.neusoft.tijiancms.po.CiDetailedReport;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

@Mapper
public interface CiDetailedReportMapper {

	/**
	 * 批量添加
	 * @param list
	 * @return
	 */
	public int saveCiDetailedReport(List<CiDetailedReport> list);

	/**
	 * 查询体检报告明细列表
	 * @param ciDetailedReport
	 * @return
	 */
	@Select("select * from ciDetailedReport where orderId=#{orderId} and ciId=#{ciId} order by cidrId")
	public List<CiDetailedReport> listCiDetailedReportByOrderIdByCiId(CiDetailedReport ciDetailedReport);

	/**
	 * 批量更新
	 * @param list
	 * @return
	 */
	public int updateCiDetailedReport(List<CiDetailedReport> list);
}
